#include <stdio.h> 
int main(){
	unsigned int input=0;
	unsigned int jishu=0,oushu=0;
	while (1){
		
		scanf("%d",&input);
		if (input == -1) break;
		if (input%2!=0) {
			jishu+=1;
		
		}
		else{
			oushu+=1;
		}		
		
		
		
	}
	printf("%d %d",jishu,oushu);
	
	
} 
